from django.urls import path

from apps.oauth.views import QQLoginURLView, OauthQQView
from apps.users.views import UsernameCountView, MobileCountView, RegisterView, LoginView, LogoutView, CenterView

urlpatterns = [

    # django的类视图拥有自动查找指定方法的功能, 通过调用是通过as_view()方法实现

    # 1、直接使用方式
    # path('usernames/<username>/count/', UsernameCountView.as_view()),
    # 2、使用转换器,username_converter是转换器转换后的名字---在总路由汇总

    path('qq/authorization/', QQLoginURLView.as_view()),
    path('oauth_callback/', OauthQQView.as_view())

]



